Guild Wars Forums - GW Guru
 
 

Go Back   Guild Wars Forums - GW Guru > The Inner Circle > The Riverside Inn

Notices

Reply
 
Thread Tools Display Modes
Old Aug 14, 2007, 02:00 PM // 14:00   #1
Frost Gate Guardian
 
Free Wind's Avatar
 
Join Date: Jul 2006
Location: Moscow
Profession: W/
Advertisement

Disable Ads
Default Loot Scale Formula

Being in UW I dropped 1000 gold coins on the ground. It turned out to be only 232g, but when you pick it up you see "You picked up 1000g" message in chat log

I am pretty sure this is the effect of loot scale formula working (UW is 8-men team area)

I am not good at math neither do I care about loot scale but those of you intrested in it can probably test it in different areas and with different amounts to evetually come up with a correct loot scale formula
Free Wind is offline   Reply With Quote
Old Aug 14, 2007, 02:05 PM // 14:05   #2
Banned
 
Trav The Ripper's Avatar
 
Join Date: Feb 2007
Profession: N/
Default

well were their people in your team? cuz theyll split it if so, thats why i only drop 1 gold.
Trav The Ripper is offline   Reply With Quote
Old Aug 14, 2007, 02:49 PM // 14:49   #3
Lion's Arch Merchant
 
zknifeh's Avatar
 
Join Date: Feb 2006
Location: Kamadan
Guild: Acolites of Anguish [aOa]
Profession: A/
Default

no they wont split it...
if a monster drops gold - the game sais "you party shares x ammount"
if you drop gold - the game sais "you pick up x ammount" which means u dont share it...
however i noticed the same when i was in presearing... i would drop around 2k and it would only display around 48 gold... then would say i picked up 2k again
zknifeh is offline   Reply With Quote
Old Aug 14, 2007, 03:57 PM // 15:57   #4
Jungle Guide
 
Milennin's Avatar
 
Join Date: Sep 2006
Location: Europe
Profession: W/
Default

Dropping any amount of Gold Coins under 256 shows the exact amount you dropped. Anything over 255 will show a lower number of Gold Coins.
Milennin is offline   Reply With Quote
Old Aug 14, 2007, 04:09 PM // 16:09   #5
Academy Page
 
Join Date: Apr 2005
Default

Yep, it's a coding limitation. Seems they only allow 1 byte (8 bits) for the number on a gold drop, 2^8 = 256 being the largest number they can show. Anything over that will display the modulus of the number with 256. So if you drop 1000 gold:

1000 - 256 = 744
744 - 256 = 488
488 - 256 = 232
dr_ishmael is offline   Reply With Quote
Old Aug 14, 2007, 04:24 PM // 16:24   #6
Banned
 
Captain Arne Is PRO's Avatar
 
Join Date: Jun 2005
Default

dr ishmael is the winner!
Captain Arne Is PRO is offline   Reply With Quote
Old Aug 14, 2007, 05:38 PM // 17:38   #7
Desert Nomad
 
Join Date: May 2007
Profession: W/E
Default

Shame he think 1 byte can show 256

Quite sure you'll find 1 byte has a max value of 255
JeniM is offline   Reply With Quote
Old Aug 14, 2007, 06:16 PM // 18:16   #8
Frost Gate Guardian
 
Join Date: Jun 2005
Location: England
Guild: Angry Businessmens [aB]
Profession: E/
Default

1 byte can have 256 discrete values. i.e. range of 0 to 255 where 0 is decribed by the highest order bit.

Another example is MIDI which stores control data in 7 bits (2^7 = 128). There 2 bytes - one refered to as a status byte and the other as the data byte. The first byte describes control information in MIDI compatible instruments and it has 128 possible values. However you will notice that any synth that displays its CC value has a sweep range is 0 to 127. Which is still 128 discrete steps - the first bit of the status byte in binary terms is 1 anyway.

Last edited by Fire Childe; Aug 14, 2007 at 06:35 PM // 18:35..
Fire Childe is offline   Reply With Quote
Old Aug 14, 2007, 06:39 PM // 18:39   #9
Frost Gate Guardian
 
Free Wind's Avatar
 
Join Date: Jul 2006
Location: Moscow
Profession: W/
Default

I am pretty much sure this is something new, I DO remember you used to be able to drop 10 000 and see it being displayed in chat log ('xx drops 10 000 gold'). So i dont believe in 1 byte storage variable for the gold amount dropped, this is something else
Free Wind is offline   Reply With Quote
Old Aug 14, 2007, 08:29 PM // 20:29   #10
Academy Page
 
Join Date: Apr 2005
Default

Quote:
Originally Posted by JeniM
Shame he think 1 byte can show 256

Quite sure you'll find 1 byte has a max value of 255
I know that, I was just keeping it simple for the people who don't understand computer theory that well and might be confused if I said 2^8 = 255.
dr_ishmael is offline   Reply With Quote
Old Aug 14, 2007, 09:42 PM // 21:42   #11
Krytan Explorer
 
immortius's Avatar
 
Join Date: Aug 2005
Guild: Black Cats
Profession: E/Mo
Default

Well, for that matter there's no reason ANet couldn't offset that value by +1, given that you never get drops of 0 gold coins.

Last edited by immortius; Aug 14, 2007 at 09:44 PM // 21:44..
immortius is offline   Reply With Quote
Old Aug 15, 2007, 05:49 AM // 05:49   #12
Frost Gate Guardian
 
Free Wind's Avatar
 
Join Date: Jul 2006
Location: Moscow
Profession: W/
Default

This sounds strange that the code has two different variables to store the amount displayed and the actual amount on the ground. After all, when you pick it up it turns out to be exactly what it was when you dropped it
Free Wind is offline   Reply With Quote
Old Aug 15, 2007, 02:22 PM // 14:22   #13
Academy Page
 
Join Date: Apr 2005
Default

It probably is a single variable that stores the actual amount, while the amount displayed isn't a variable in itself, but a pointer to the first variable. When the pointer is referenced, it only pulls the first byte from the variable instead of the full value, meaning it only gets the 2^0 - 2^7 bits out of the original, which equates to "[actual amount] modulus 256".

The question now would be whether the [actual amount] variable is 2 or 3 bytes. 2 bytes would be a limit of 65536 gold, while 3 would be ~16.8 million. To test, I go outside and drop 65540 gold... it displays 4 gold coins... and I pick up 65540 gold. The amount is at least a 3-byte variable, and there's no way to exceed the limit on this, so you won't ever lose gold by dropping it and then picking it up. (Why you would do that with that much gold, though, I don't know...)
dr_ishmael is offline   Reply With Quote
Old Aug 15, 2007, 02:39 PM // 14:39   #14
Krytan Explorer
 
immortius's Avatar
 
Join Date: Aug 2005
Guild: Black Cats
Profession: E/Mo
Default

The display value would be limited to 1 byte to reduce bandwidth usage. The actual value would exist in full on the server of course.
immortius is offline   Reply With Quote
Old Aug 16, 2007, 06:19 AM // 06:19   #15
Ascalonian Squire
 
Join Date: Feb 2007
Location: australia
Guild: Rendered Eternal [SouL]
Profession: Mo/Me
Default

you are all wrong unfortunately, its got nothing to do with coding or loot scaling, its to stop ppl nickin ya gold if you try to show off :P if they see you have dropped 100k, POOF SHADOW STEP YOINK!!!! the coding IS correct, but its not the main reason it shows that way. it was meant for idiot ppl back when scammers would ask you to go outside to trade and drop money/goods on the ground
viscus is offline   Reply With Quote
Old Aug 16, 2007, 02:19 PM // 14:19   #16
Academy Page
 
Join Date: Apr 2005
Default

Viscus, you're confusing cause and effect. What you state may be the cause for Anet implementing the amount displayed in that manner, but the fact still stands that the game is coded so that the amount displayed only reflects the first byte's worth of the actual amount.
dr_ishmael is offline   Reply With Quote
Reply

Share This Forum!  
 
 
           

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:17 AM // 04:17.


Powered by: vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.
jQuery(document).ready(checkAds()); function checkAds(){if (document.getElementById('adsense')!=undefined){document.write("_gaq.push(['_trackEvent', 'Adblock', 'Unblocked', 'false',,true]);");}else{document.write("